import Vue from 'vue';
import Router from 'vue-router';



Vue.use(Router);





export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        {
            path: '/register',
            component: resolve => require(['../components/page/register.vue'], resolve)
        },
        {
            path: '/forget',
            component: resolve => require(['../components/page/Forget.vue'], resolve)
        },
        {
            path: '/readme',
            component: resolve => require(['../components/common/Home.vue'], resolve),
            children:[
                {
                    path: '/',
                    component: resolve => require(['../components/page/Readme.vue'], resolve)
                },
                {
                    path: '/laboratory',
                    component: resolve => require(['../components/page/Laboratory.vue'], resolve),
                },
                {
                    path: '/equipment',
                    component: resolve => require(['../components/page/Equipment.vue'], resolve)
                },
                {
                    path: '/analysis',
                    component: resolve => require(['../components/page/Analysis.vue'], resolve)
                },
                {
                    path: '/person',
                    component: resolve => require(['../components/page/personinformation.vue'], resolve)
                },
                {
                    path: '/laboratoryinformation',
                    component: resolve => require(['../components/page/laboratoryinformation.vue'], resolve)
                },
                {
                    path: '/equipmentinformation',
                    component: resolve => require(['../components/page/equipmentinformation.vue'], resolve)
                },
                {
                    path: '/health',
                    component: resolve => require(['../components/page/Health.vue'], resolve)
                },
                {
                    path: '/usertable',
                    component: resolve => require(['../components/page/usertable.vue'], resolve)
                },
                {
                    path: '/roletable',
                    component: resolve => require(['../components/page/roletable.vue'], resolve)
                },
                {
                    path: '/resource',
                    component: resolve => require(['../components/page/resource.vue'], resolve)
                },
                {
                    path: '/labrepairtotle',
                    component: resolve => require(['../components/page/Labrepairtotle.vue'], resolve)
                },
                {
                    path: '/epurepairtotle',
                    component: resolve => require(['../components/page/Epurepairtotle.vue'], resolve)
                },
                {
                    path: '/classroom_application',
                    component: resolve => require(['../components/page/Classroom_application.vue'], resolve)
                },
                {
                    path: '/classroom_information',
                    component: resolve => require(['../components/page/Classroom_information.vue'], resolve)
                },
                {
                    path: '/repair2',
                    component: resolve => require(['../components/page/Repair2.vue'], resolve)
                },
                {
                    path: '/help',
                    component: resolve => require(['../components/page/Help.vue'], resolve)
                },
                {
                    path: '/repairform',
                    component: resolve => require(['../components/page/RepairForm.vue'], resolve)     // Vue-Quill-Editor组件
                },
            ]
        },
        {
            path: '/classroomapplication',
            component: resolve => require(['../components/page/Classroom_application.vue'], resolve)
        },
        {
            path: '/equipmentrepair',
            component: resolve => require(['../components/page/Equipment_repair.vue'], resolve)
        },
        {
            path: '/healthstatus',
            component: resolve => require(['../components/page/Health_status.vue'], resolve)
        },
        {
            path: '/laboratoryrepair',
            component: resolve => require(['../components/page/Laboratory_repair.vue'], resolve)
        },
        {
            path: '/maintenancelaboratory',
            component: resolve => require(['../components/page/Maintenance_laboratory.vue'], resolve)
        },
        {
            path: '/servicinginstallation',
            component: resolve => require(['../components/page/servicing_installation.vue'], resolve)
        },
        {
            path: '/login',
            component: resolve => require(['../components/page/Login.vue'], resolve)

        },

        {
            path: '/usual',
            component: resolve => require(['../components/page/usual.vue'], resolve)
        },

        {
            path: '/personinformation',
            component: resolve => require(['../components/page/personinformation.vue'], resolve)
        },
        {
            path: '/laboratoryinformation',
            component: resolve => require(['../components/page/laboratoryinformation.vue'], resolve)
        },
    ]
})
// const router=new Router({
//     routes,
// })


